package com.zpl.member.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zpl.member.entity.Member;
import com.zpl.member.entity.dto.MemberKeyWordDTO;
import com.zpl.member.entity.vo.MemberVO;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author wangyuxin
 * @date 2020/9/28
 */
public interface MemberService {
    boolean insert(Member member);
    boolean delete(Long id);
    boolean update(Member member);
    Member getMember(Long id);
    List<Member> selectByNickName(String nickName);
    Member selectByPhone(String phone);
    List<Member> getAllMember();
    IPage<Member> getMembers(MemberKeyWordDTO memberKeyWordDTO);
    IPage<MemberVO>  getMemberList(MemberKeyWordDTO memberKeyWordDTO);
    boolean login(String phone,String password);
}
